package learn.service.quartz;

import org.apache.log4j.Logger;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * Created by sqluogui on 2016/10/19.
 */
@Service
public class UserQuartzJob implements Job {
    private static Logger logger = Logger.getLogger(String.valueOf(UserQuartzJob.class));
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        System.out.println(new Date());
        System.out.println("hello");
    }
}
